/**
 *
 *
 *
 */

export const BASE_TITLE = '便利店'
export const PAGE_SIZE = 10
export const MALE = 1
export const FEMALE = 0
export const UNKNOWN_GENDER = 2
export const GENDER_MAP = {
  [FEMALE]: '女',
  [MALE]: '男',
  [UNKNOWN_GENDER]: '未知'
}
export const GENDER_LIST = [MALE, FEMALE, UNKNOWN_GENDER].map(value => ({
  label: GENDER_MAP[value],
  value: value
}))
export const USER_VALID = 1
export const USER_INVALID = 0
export const USER_STATUS_MAP = {
  [USER_VALID]: '启用',
  [USER_INVALID]: '停用'
}
export const USER_STATUS_LIST = [USER_VALID, USER_INVALID].map(value => ({
  label: USER_STATUS_MAP[value],
  value: value
}))
export const ROLE_ADMIN = 1
export const ROLE_USER = 2
export const ROLE_MAP = {
  [ROLE_ADMIN]: '管理员',
  [ROLE_USER]: '普通用户'
}
export const ROLE_LIST = [ROLE_ADMIN, ROLE_USER].map(value => ({
  label: ROLE_MAP[value],
  value: value
}))

export const GOODS_VALID = 1
export const GOODS_INVALID = 0
export const GOOD_STATUS_MAP = {
  [GOODS_VALID]: {
    main: '上架',
    sub: '正常'
  },
  [GOODS_INVALID]: {
    main: '下架',
    sub: '已下架'
  }
}
export const GOODS_STATUS_LIST = [GOODS_VALID, GOODS_INVALID].map(value => ({
  label: GOOD_STATUS_MAP[value].main,
  value: value
}))

export const ORDER_PAID = 1
export const ORDER_UNPAID = 0
export const ORDER_DELETED = -1
export const ORDER_STATUS_MAP = {
  [ORDER_PAID]: '已支付',
  [ORDER_UNPAID]: '未支付',
  [ORDER_DELETED]: '已删除'
}
